<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/tld/c.tld" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title><strong>公告信息</strong></title>
<link href="/estate/css/css.css" rel="stylesheet" type="text/css">
<script src="/estate/js/meizzDate.js"></script>
<script type="text/javascript">
	function updateAnnouncement(form){
		form.action="/estate/admin/announcementAction.action?method=modify";
   		form.submit();
	}
	function postAnnouncement(form){
		form.action="/estate/admin/announcementAction.action?method=post&state=2";
   		form.submit();
	}
</script>
</head>
<body>
<form name="form1" id="form1" method="post" action="">
<table border="0" cellpadding="0" cellspacing="0" style="background-image:url(/estate/images/gtbg.gif) " width="100%">
    <tr>
      <td width="50%" height="82" rowspan="2"><img src="/estate/images/guide_01.gif"></td>
      <td width="50%" style="background-image:url(/estate/images/guide_02.gif);color:#cc1212; font-size:16px; font-weight:bold; text-align:right; padding-right:50px; letter-spacing:1px; " height="39"><strong>公告信息</strong></td>
    </tr>
     <tr><td width="50%" style="background-image:url(/estate/images/guide_03.gif); height:43px;" align="center" valign="middle">
	  <table width="50%" border="0" cellspacing="0" cellpadding="0">
        <tr align="center">
        </tr>
      </table></td>
    </tr>
</table><br>
<table width="80%" align="center" border="0" cellspacing="0" cellpadding="0" class="main">
	<input type="hidden" name="id" value="${announcement.id }"/>
  <tr align="center">
    <td colspan="8" class="tableTitle">公告信息</td>
  </tr>
  <tr>
 	<td width="10%" align="right" class="two">状态：</td>
    <td width="10%" class="two" align="left">&nbsp;<label class="input">${announcement.state }</label></td>
    
    <td width="15%" align="right" class="two">发布时间：</td>
    <td width="20%" class="two" align="left">&nbsp;<label class="input">${announcement.postDate }</label></td>
    
    <td width="10%" align="right" class="two">发布人：</td>
    <td width="10%" class="two" align="left">&nbsp;<label class="input">${announcement.postUser.name }</label></td>
    
    <td width="10%" align="right" class="two">阅读数：</td>
    <td width="15%" class="two" align="left">&nbsp;<label class="input">${announcement.readNum }</label></td>
    
  </tr>
  <tr>
    <td colspan="1" width="15%" align="right" class="two" >标题：</td>
    <td colspan="7" width="33%" class="two" align="left">&nbsp;<label class="input">${announcement.title }</label></td>
  </tr>
  <tr>
    <td colspan="1" width="20%" align="right" class="two">内容：</td>
    <td  colspan="7"  width="32%" class="two" align="left">&nbsp;<label class="input">${announcement.content }</label></td>
  </tr>
 
  <tr>
    <td colspan="8"  height="16" colspan="2" class="two" align="center">&nbsp;
    	<c:if test="${announcement.postUser.id eq sessionScope.sessionUser.id}">
    		<input type="button" name="Submit2" onFocus="this.blur();" value="修改公告内容" class="button2" onclick="updateAnnouncement(form1)">
    	</c:if>
    	<c:if test="${announcement.state eq '未发布'}">
    		<input type="button" name="Submit2" onFocus="this.blur();" value="发布公告" class="button2" onclick="postAnnouncement(form1)">
    	</c:if>
	</td>
  </tr>
  <tr><td class="two" colspan="8">&nbsp;</td></tr>
</table><br>
</form>
</body>
<script language="javascript">
  function doit(){
    window.open('additional.htm','','')
  }
</script>
</html>
